//
//  MultiSegmentControl.h
//  MultiSegmentController
//
//  Created by ET|冰琳 on 16/7/1.
//  Copyright © 2016年 Binglin. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface MultiSegmentControl : UIControl


@property (nonatomic, readonly) NSArray *segmentItems;

/**
 *  每个segment都需要实现SegmentItemProtocol 且每个item都需要是view的子类
 */
- (instancetype)initWithFrame:(CGRect)frame segmentItems:(NSArray *)segments;

/**
 *
 */
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)segmentTitles;


@end
